package com.itranswarp.learnjava;

/**
 * @File    :   Proxy
 * @Time    :   2021/6/15 7:29 下午
 * @Author  :   Zhang Hong
 * @Version :   1.0
 * @Contact :   zh224635@163.com
 * @Desc    :   TODO  代理,帮助房东出租房子
 **/

public class Proxy implements Rent{
    private Host host;

    public Proxy(Host host) {
        this.host = host;
    }

    public Proxy() {
    }

    @Override
    public void rent() {
        seeHouse();
        host.rent();
        hetong();
        fare();
    }
    //看房
    public void seeHouse(){
        System.out.println("中介帮你看房");
    }
    //收中介费
    public void fare(){
        System.out.println("中介收取中介费");
    }
    public void hetong(){
        System.out.println("签合同");
    }

}
